/** @jsxImportSource @emotion/react */
import * as React from "react";
import {  OriginalViewProps,  } from "../../common/base";
import {
  config设备概况, EntranceSetup
} from "./orcBase";
import { createItem,  } from "../../common/eHelper";
import {useRecordListSubr} from "../../hook/useRecordListSub";
import {DeviceSurvey} from "../../elevator/editor";
import {ConclusionMVS, ProjectListMVS} from "../editorDJ";
import {ShellAppearance, Structural} from "./editMacr";
import {MaterialReview, PreviousQuestion} from "./editReview";
import {AccessoriesValve, LiquidLevelGauge} from "./editSAcces";
import {AdditionalTest, Corrosive} from "./editAddon";


const recordPrintList =[
  createItem('Entrance', <EntranceSetup/>),
  createItem('ProjectList', <ProjectListMVS label={'移动式压力容器全面检验报告'}/>),
  createItem('Survey', <DeviceSurvey config={config设备概况} label={'检验结论报告-设备概况'}/>),
  createItem('Conclusion', <ConclusionMVS label={'检验结论报告-下结论'}/>),
  createItem('MaterialReview', <MaterialReview label={'移动式压力容器资料审查报告-技术参数'}/>),
  createItem('PreviousQuestion', <PreviousQuestion label={'移动式压力容器资料审查报告-结果和上次问题'}/>),
  createItem('Structural', <Structural label={'全面检验报告附页-结构检验'}/>),
  createItem('ShellAppearance', <ShellAppearance label={'全面检验报告附页-附件检验'}/>),

  createItem('Accessories', <AccessoriesValve label={'安全附件检验报告(上)'}/>),
  createItem('LiquidLevel', <LiquidLevelGauge label={'安全附件检验报告(下)'}/>),

  createItem('AdditionalTest', <AdditionalTest label={'附加检验报告(上)'}/>),
  createItem('Corrosive', <Corrosive label={'附加检验报告(下)'}/>),
  //嵌入redId nestMd 动态解析URL寻找定位的分项报告原始的不分是独立或者嵌套公用入口编辑器？这里当前做法是直接拷贝import组件的！组件的文件目录都是不相等的！！
  //壁厚测定报告 的 分项控制器：后面不需要要配<Corrosive/>的。 对应/report/THICKM_VS/ver/1/akDHJi77Qh2xTd4BJwdb5FJlcG9ydA/THICKM_VS/_Controller
  createItem('_Controller',  <></>),
];


export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );

